
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>vue-calendar-component · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="vue-infinite-loading.html" />
    
    
    <link rel="prev" href="vue-axios使用方法.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../cmd命令.html">
            
                <a href="../cmd命令.html">
            
                    
                    cmd命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="Array.prototype.slice.call.html">
            
                <a href="Array.prototype.slice.call.html">
            
                    
                    Array.prototype.slice.call解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="async 函数.html">
            
                <a href="async 函数.html">
            
                    
                    async 函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="callback&&callback如果存在回调函数就执行.html">
            
                <a href="callback&&callback如果存在回调函数就执行.html">
            
                    
                    callback&&callback() 如果存在回调函数就执行！
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="CSS3 nth-child使用注意.html">
            
                <a href="CSS3 nth-child使用注意.html">
            
                    
                    CSS3 nth-child(n)使用注意
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="css3的 -webkit-min-device-pixel-ratio属性 解决高清的适配.html">
            
                <a href="css3的 -webkit-min-device-pixel-ratio属性 解决高清的适配.html">
            
                    
                    css3的 -webkit-min-device-pixel-ratio属性 解决高清的适配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="CSS文本超出自动缩小字体.html">
            
                <a href="CSS文本超出自动缩小字体.html">
            
                    
                    CSS文本超出自动缩小字体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="element-ui默认样式修改.html">
            
                <a href="element-ui默认样式修改.html">
            
                    
                    element-ui默认样式修改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="JavaScript setInterval函数详解.html">
            
                <a href="JavaScript setInterval函数详解.html">
            
                    
                    JavaScript setInterval() 函数详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="JavaScript概念之screenclientoffsetscrollinneravail的widthleft.html">
            
                <a href="JavaScript概念之screenclientoffsetscrollinneravail的widthleft.html">
            
                    
                    JavaScript概念之screenclientoffsetscrollinneravail的widthleft
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="js获取星期几.html">
            
                <a href="js获取星期几.html">
            
                    
                    js获取星期几
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="js监听滚动条事件和获取浏览器及屏幕高度和宽度等信息的方法.html">
            
                <a href="js监听滚动条事件和获取浏览器及屏幕高度和宽度等信息的方法.html">
            
                    
                    js监听滚动条事件和获取浏览器及屏幕高度和宽度等信息的方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="js时间戳与日期格式之间相互转换.html">
            
                <a href="js时间戳与日期格式之间相互转换.html">
            
                    
                    js时间戳与日期格式之间相互转换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="JS数组reduce方法详解及高级技巧.html">
            
                <a href="JS数组reduce方法详解及高级技巧.html">
            
                    
                    JS数组reduce()方法详解及高级技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="js中获取时间new Date详细介绍.html">
            
                <a href="js中获取时间new Date详细介绍.html">
            
                    
                    js中获取时间new Date()详细介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="less传参问题：在url中插入变量今天在需要用less给url传递参数时遇到了小问题，一番搜索后有了下述解决方法.html">
            
                <a href="less传参问题：在url中插入变量今天在需要用less给url传递参数时遇到了小问题，一番搜索后有了下述解决方法.html">
            
                    
                    less传参问题：在url中插入变量今天在需要用less给url传递参数时遇到了小问题，一番搜索后有了下述解决方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="moment 和date-fns.html">
            
                <a href="moment 和date-fns.html">
            
                    
                    moment 和date-fns
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="node.JS中配置http-server.html">
            
                <a href="node.JS中配置http-server.html">
            
                    
                    node.JS中配置http-server
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="Object.keys详解.html">
            
                <a href="Object.keys详解.html">
            
                    
                    Object.keys详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="router-link各种属性解释.html">
            
                <a href="router-link各种属性解释.html">
            
                    
                    router-link各种属性解释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.22" data-path="stylus使用介绍.html">
            
                <a href="stylus使用介绍.html">
            
                    
                    stylus使用介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23" data-path="TypeError Cannot read property 'compilation' of undefined.html">
            
                <a href="TypeError Cannot read property 'compilation' of undefined.html">
            
                    
                    TypeError Cannot read property 'compilation' of undefined
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.24" data-path="Vue  keep-alive.html">
            
                <a href="Vue  keep-alive.html">
            
                    
                    Vue  keep-alive
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.25" data-path="Vue - 过渡与动画transition.html">
            
                <a href="Vue - 过渡与动画transition.html">
            
                    
                    Vue - 过渡与动画transition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.26" data-path="vue-axios使用方法.html">
            
                <a href="vue-axios使用方法.html">
            
                    
                    vue-axios使用方法
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.27" data-path="vue-calendar-component.html">
            
                <a href="vue-calendar-component.html">
            
                    
                    vue-calendar-component
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.28" data-path="vue-infinite-loading.html">
            
                <a href="vue-infinite-loading.html">
            
                    
                    vue-infinite-loading
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.29" data-path="vue报错There are multiple modules with names that only differ in casing.html">
            
                <a href="vue报错There are multiple modules with names that only differ in casing.html">
            
                    
                    vue报错There are multiple modules with names that only differ in casing
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.30" data-path="Vue中注意target和currentTarget的使用.html">
            
                <a href="Vue中注意target和currentTarget的使用.html">
            
                    
                    Vue中注意target和currentTarget的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.31" data-path="关于给javascript对象添加、删除、修改对象的属性.html">
            
                <a href="关于给javascript对象添加、删除、修改对象的属性.html">
            
                    
                    关于给javascript对象添加、删除、修改对象的属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.32" data-path="获取当前地址坐标.html">
            
                <a href="获取当前地址坐标.html">
            
                    
                    获取当前地址坐标
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.33" data-path="解决ajax跨域问题【5种解决方案】.html">
            
                <a href="解决ajax跨域问题【5种解决方案】.html">
            
                    
                    解决ajax跨域问题【5种解决方案】
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.34" data-path="解决vue-cli webpack打包后加载资源的路径问题.html">
            
                <a href="解决vue-cli webpack打包后加载资源的路径问题.html">
            
                    
                    解决vue-cli webpack打包后加载资源的路径问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.35" data-path="时间格式转换：201971转换为2019-7-1.html">
            
                <a href="时间格式转换：201971转换为2019-7-1.html">
            
                    
                    时间格式转换：201971转换为2019-7-1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.36" data-path="数据库密码改了.html">
            
                <a href="数据库密码改了.html">
            
                    
                    数据库密码改了
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.37" data-path="语法getBoundingClientRect.html">
            
                <a href="语法getBoundingClientRect.html">
            
                    
                    语法getBoundingClientRect()
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.38" data-path="在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null.html">
            
                <a href="在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null.html">
            
                    
                    在js中使用length报错Error in renderTypeErrorcannot read property bgImg of null
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >vue-calendar-component</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="vue-calendar-component">vue-calendar-component</h2>
<ul>
<li>&#x57FA;&#x4E8E; vue 2.0 &#x5F00;&#x53D1;&#x7684;&#x8F7B;&#x91CF;&#xFF0C;&#x9AD8;&#x6027;&#x80FD;&#x65E5;&#x5386;&#x7EC4;&#x4EF6;</li>
<li>&#x5360;&#x7528;&#x5185;&#x5B58;&#x5C0F;&#xFF0C;&#x6027;&#x80FD;&#x597D;&#xFF0C;&#x6837;&#x5F0F;&#x597D;&#x770B;&#xFF0C;&#x53EF;&#x6269;&#x5C55;&#x6027;&#x5F3A;</li>
<li>&#x539F;&#x751F; js &#x5F00;&#x53D1;&#xFF0C;&#x6CA1;&#x5F15;&#x5165;&#x7B2C;&#x4E09;&#x65B9;&#x5E93;</li>
</ul>
<h2 id="why">Why</h2>
<ul>
<li>Github &#x4E0A;&#x5F88;&#x591A;&#x70B9;&#x51FB;&#x5F39;&#x51FA;&#x65E5;&#x5386;&#x9009;&#x62E9;&#x67D0;&#x4E2A;&#x65F6;&#x95F4;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x5374;&#x6CA1;&#x6709;&#x627E;&#x5230;&#x5355;&#x7EAF;&#x5C55;&#x793A;&#x65E5;&#x5386;&#x5E76;&#x4E14;&#x80FD;&#x70B9;&#x51FB;&#x83B7;&#x53D6;&#x65F6;&#x95F4;&#x7684;&#x7EC4;&#x4EF6;</li>
<li>&#x5C11;&#x90E8;&#x5206;&#x65E5;&#x5386;&#x7EC4;&#x4EF6;&#x7684;&#x5360;&#x7528;&#x5185;&#x5B58;&#x8FC7;&#x4E8E;&#x5927;&#xFF0C;&#x5BF9;&#x4E8E;&#x65E5;&#x5386;&#x8FD9;&#x6837;&#x7B80;&#x5355;&#x7684;&#x529F;&#x80FD;&#x6765;&#x8BF4;&#x663E;&#x7136;&#x4E0D;&#x591F;&#x5408;&#x7406;</li>
</ul>
<h2 id="demo">Demo</h2>
<p><img src="https://zwhgithub.github.io/vue-calendar/dist/1510652959.png" alt="&#x6548;&#x679C;"> <a href="https://zwhgithub.github.io/vue-calendar/dist/#/" target="_blank">&#x6216;&#x8005;&#x8BF7;&#x7528;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x624B;&#x673A;&#x6A21;&#x5F0F;&#x67E5;&#x770B;</a></p>
<h1 id="install">Install</h1>
<pre><code>npm i vue-calendar-component --save
cnpm i vue-calendar-component --save  //&#x56FD;&#x5185;&#x955C;&#x50CF;
</code></pre><h2 id="usage">Usage</h2>
<pre><code>//vue&#x6587;&#x4EF6;&#x4E2D;&#x5F15;&#x5165;
import Calendar from &apos;vue-calendar-component&apos;;

 components: {
    Calendar
  }
    &lt;Calendar
      v-on:choseDay=&quot;clickDay&quot;
      v-on:changeMonth=&quot;changeDate&quot;
      // v-on:isToday=&quot;clickToday&quot;
      // :markDate=arr // arr=[&apos;2018/4/1&apos;,&apos;2018/4/3&apos;] &#x6807;&#x8BB0;4&#x6708;1&#x65E5;&#x548C;4&#x6708;3&#x65E5; &#x7B80;&#x5355;&#x6807;&#x8BB0;
      //:markDateMore=arr // &#x591A;&#x79CD;&#x4E0D;&#x540C;&#x7684;&#x6807;&#x8BB0;
      // &#x7B2C;&#x4E00;&#x4E2A;&#x6807;&#x8BB0;&#x548C;&#x7B2C;&#x4E8C;&#x4E2A;&#x6807;&#x8BB0;&#x4E0D;&#x80FD;&#x540C;&#x65F6;&#x4F7F;&#x7528;
      // :agoDayHide=&apos;1514937600&apos; //&#x67D0;&#x4E2A;&#x65E5;&#x671F;&#x4EE5;&#x524D;&#x7684;&#x4E0D;&#x5141;&#x8BB8;&#x70B9;&#x51FB;  &#x65F6;&#x95F4;&#x6233;10&#x4F4D;
      // :futureDayHide=&apos;1525104000&apos; //&#x67D0;&#x4E2A;&#x65E5;&#x671F;&#x4EE5;&#x540E;&#x7684;&#x4E0D;&#x5141;&#x8BB8;&#x70B9;&#x51FB;  &#x65F6;&#x95F4;&#x6233;10&#x4F4D;
      // :sundayStart=&quot;true&quot; //&#x9ED8;&#x8BA4;&#x662F;&#x5468;&#x4E00;&#x5F00;&#x59CB; &#x5F53;&#x662F;true&#x7684;&#x65F6;&#x5019; &#x662F;&#x5468;&#x65E5;&#x5F00;&#x59CB;
    &gt;&lt;/Calendar&gt;

    clickDay(data) {
      console.log(data); //&#x9009;&#x4E2D;&#x67D0;&#x5929;
    },
    changeDate(data) {
      console.log(data); //&#x5DE6;&#x53F3;&#x70B9;&#x51FB;&#x5207;&#x6362;&#x6708;&#x4EFD;
    },
    clickToday(data) {
      console.log(data); //&#x8DF3;&#x5230;&#x4E86;&#x672C;&#x6708;
    }

  // &#x591A;&#x4E2A;&#x6807;&#x8BB0;&#x793A;&#x4F8B;
  arr=[{date:&apos;2018/4/1&apos;,className:&quot;mark1&quot;}, {date:&apos;2018/4/13&apos;,className:&quot;mark2&quot;}];
  //4&#x6708;1 &#x6807;&#x8BB0;&#x7684;className&#x662F;mark1 &#x6839;&#x636E;class&#x505A;&#x51FA;&#x4E00;&#x4E9B;&#x6807;&#x8BB0;&#x6837;&#x5F0F;
</code></pre><h2 id="github&#x5730;&#x5740;-&#x8BE6;&#x7EC6;&#x6587;&#x6863;"><a href="https://github.com/zwhGithub/vue-calendar" target="_blank">github&#x5730;&#x5740;</a> &#x8BE6;&#x7EC6;&#x6587;&#x6863;</h2>
<h3 id="api">API</h3>
<table>
<thead>
<tr>
<th style="text-align:left">&#x5C5E;&#x6027;</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
<th style="text-align:center">&#x9ED8;&#x8BA4;</th>
<th style="text-align:center">&#x662F;&#x5426;&#x5FC5;&#x4F20;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">choseDay</td>
<td style="text-align:left">&#x9009;&#x4E2D;&#x67D0;&#x5929;&#x8C03;&#x7528;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x8FD4;&#x56DE;&#x9009;&#x4E2D;&#x7684;&#x65E5;&#x671F; YY-MM-DD</td>
<td style="text-align:center">&#x65E0;</td>
<td style="text-align:center">&#x5426;</td>
</tr>
<tr>
<td style="text-align:left">changeMonth</td>
<td style="text-align:left">&#x5207;&#x6362;&#x6708;&#x4EFD;&#x8C03;&#x7528;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x8FD4;&#x56DE;&#x5207;&#x6362;&#x5230;&#x67D0;&#x6708;&#x7684;&#x65E5;&#x671F; YY-MM-DD</td>
<td style="text-align:center">&#x65E0;</td>
<td style="text-align:center">&#x5426;</td>
</tr>
<tr>
<td style="text-align:left">isToday</td>
<td style="text-align:left">&#x5207;&#x6362;&#x6708;&#x4EFD;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5982;&#x679C;&#x5207;&#x5230;&#x5F53;&#x524D;&#x6708;&#x4EFD;&#xFF0C;&#x8C03;&#x7528;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#xFF0C;&#x8FD4;&#x56DE;&#x5F53;&#x524D;&#x6708;&#x4ECA;&#x5929;</td>
<td style="text-align:center">&#x65E0;</td>
<td style="text-align:center">&#x5426;</td>
</tr>
<tr>
<td style="text-align:left">markDate</td>
<td style="text-align:left">&#x5982;&#x679C;&#x9700;&#x8981;&#x67D0;&#x6708;&#x7684;&#x51E0;&#x5929;&#x88AB;&#x6807;&#x6CE8;&#xFF0C;&#x4F20;&#x5F53;&#x6708;&#x7684;&#x65E5;&#x671F;&#x6570;&#x7EC4;&#x3002;&#x5982;[&quot;2018/2/2&quot;,&quot;2018/2/6&quot;]&#x88AB;&#x4F1A;&#x6807;&#x6CE8;&#xFF08;&#x76F8;&#x540C;&#x7684;&#x6807;&#x8BB0;&#xFF09;</td>
<td style="text-align:center">&#x7A7A;&#x6570;&#x7EC4;</td>
<td style="text-align:center">&#x5426;</td>
</tr>
<tr>
<td style="text-align:left">markDateMore</td>
<td style="text-align:left">&#x9700;&#x8981;&#x4E0D;&#x540C;&#x7684;&#x6807;&#x8BB0;&#x5982;&#x4E0A;Usage &#x6700;&#x540E;&#x4E00;&#x884C;&#x793A;&#x4F8B;&#x4EE3;&#x7801;</td>
<td style="text-align:center">&#x7A7A;&#x6570;&#x7EC4;</td>
<td style="text-align:center">&#x5426;</td>
</tr>
<tr>
<td style="text-align:left">agoDayHide</td>
<td style="text-align:left">&#x67D0;&#x4E2A;&#x65E5;&#x671F;&#x4EE5;&#x524D;&#x7684;&#x4E0D;&#x5141;&#x8BB8;&#x70B9;&#x51FB; &#x65F6;&#x95F4;&#x6233;&#x957F;&#x5EA6;&#x662F; 10 &#x4F4D;</td>
<td style="text-align:center">0</td>
<td style="text-align:center">&#x5426;</td>
</tr>
<tr>
<td style="text-align:left">futureDayHide</td>
<td style="text-align:left">&#x67D0;&#x4E2A;&#x65E5;&#x671F;&#x4EE5;&#x540E;&#x7684;&#x4E0D;&#x5141;&#x8BB8;&#x70B9;&#x51FB; &#x65F6;&#x95F4;&#x6233;&#x957F;&#x5EA6;&#x662F; 10 &#x4F4D;</td>
<td style="text-align:center">&#x5F88;&#x5927;</td>
<td style="text-align:center">&#x5426;</td>
</tr>
<tr>
<td style="text-align:left">sundayStart</td>
<td style="text-align:left">&#x9ED8;&#x8BA4;&#x662F;&#x5468;&#x4E00;&#x5F00;&#x59CB; &#x5F53;&#x662F;true&#x7684;&#x65F6;&#x5019; &#x662F;&#x5468;&#x65E5;&#x5F00;&#x59CB;</td>
<td style="text-align:center">false</td>
<td style="text-align:center">&#x5426;</td>
</tr>
<tr>
<td style="text-align:left">textTop</td>
<td style="text-align:left">&#x65E5;&#x5386;&#x5934;&#x90E8;&#x7684;&#x6587;&#x5B57;&#xFF0C;&#x9ED8;&#x8BA4;&#x662F; [ &apos;&#x65E5;&apos;,&apos;&#x4E00;&apos;, &apos;&#x4E8C;&apos;, &apos;&#x4E09;&apos;, &apos;&#x56DB;&apos;, &apos;&#x4E94;&apos;, &apos;&#x516D;&apos;] &#xFF0C;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x7684;&#x9700;&#x6C42;&#x8FDB;&#x884C;&#x4E0D;&#x540C;&#x7684;&#x4FEE;&#x6539;&#x3002;</td>
<td style="text-align:center">---</td>
<td style="text-align:center">&#x5426;</td>
</tr>
</tbody>
</table>
<pre><code>&#x2705; &#x5728; Calendar&#x6807;&#x7B7E;&#x4E0A;&#x6DFB;&#x52A0; ref &#x5C5E;&#x6027;, &#x66B4;&#x9732;&#x51FA;&#x4E09;&#x4E2A;&#x65B9;&#x6CD5;&#x53EF;&#x4EE5;  &#x76F4;&#x63A5;&#x5207;&#x6362;&#x6708;&#x4EFD;
&#x4F8B;&#x5982;: &lt;Calendar ref=&quot;Calendar&quot;&gt;&lt;/Calendar&gt;

      &#x2705; this.$refs.Calendar.PreMonth();  //&#x8C03;&#x7528;&#x65B9;&#x6CD5;&#x5B9E;&#x73B0;&#x8F6C;&#x5230;&#x4E0A;&#x4E2A;&#x6708;
      &#x2705; this.$refs.Calendar.NextMonth(); //&#x8C03;&#x7528;&#x65B9;&#x6CD5;&#x5B9E;&#x73B0;&#x8F6C;&#x5230;&#x4E0B;&#x4E2A;&#x6708;
      &#x2705; this.$refs.Calendar.ChoseMonth(&apos;2018-12-12&apos;); //&#x8C03;&#x7528;&#x65B9;&#x6CD5;&#x5B9E;&#x73B0;&#x8F6C;&#x5230;&#x67D0;&#x4E2A;&#x6708;
      &#x2705; this.$refs.Calendar.ChoseMonth(&apos;2018-12-12&apos;,false); //&#x8DF3;&#x8F6C;&#x5230;18&#x5E74;12&#x6708;12&#x65E5; &#x4F46;&#x662F;&#x4E0D;&#x9009;&#x4E2D;&#x5F53;&#x5929;
      //&#x7B2C;&#x4E8C;&#x4E2A;&#x53C2;&#x6570; false&#x8868;&#x793A;&#x4E0D;&#x9009;&#x4E2D;&#x65E5;&#x671F; &#x3002;
</code></pre><h2 id="&#x9047;&#x5230;&#x9519;&#x8BEF;---">&#x9047;&#x5230;&#x9519;&#x8BEF;---</h2>
<ul>
<li>&#x9047;&#x5230;&#x63D0;&#x793A;UglifyJs&#x6253;&#x5305;&#x7F16;&#x8BD1;&#x9519;&#x8BEF;&#x3002;
 &#x56E0;&#x4E3A;&#x5F53;&#x524D;&#x7248;&#x672C;UglifyJs&#x4E0D;&#x77E5;&#x9053;&#x7F16;&#x8BD1;es6</li>
</ul>
<p>&#x89E3;&#x51B3;&#x65B9;&#x6CD5;
 <strong>npm install --save-dev babel-preset-env</strong> </p>
<p> &#x7136;&#x540E;&#x5728;&#x6839;&#x76EE;&#x5F55;&#x521B;&#x5EFA;&#x4E00;&#x4E2A; .babelrc &#x6587;&#x4EF6;
 &#x5728;&#x8F93;&#x5165;,</p>
<p> {
 &quot;presets&quot;: [&quot;env&quot;]
 }</p>
<p>&#x4FDD;&#x5B58; &#x91CD;&#x65B0;build&#x5C31;OK&#x4E86;</p>
<p><a href="https://github.com/babel/babel-preset-env" target="_blank">babel-preset-env&#x5B98;&#x65B9;&#x6587;&#x6863;</a></p>
<h2 id="other">Other</h2>
<ul>
<li>src &#x4E0B;&#x9762;&#x7684; App.vue &#x6709; demo &#x53EF;&#x4EE5;&#x53C2;&#x8003;.</li>
<li>&#x5982;&#x679C;&#x6709;&#x5176;&#x4ED6;&#x95EE;&#x9898;&#x6216;&#x8005;&#x7248;&#x672C;&#x4E0A;, &#x529F;&#x80FD;&#x4E0A;&#x4E0D;&#x517C;&#x5BB9;&#x7684; &#x90AE;&#x4EF6;&#x6C9F;&#x901A; zwhcoder@gmail.com</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="vue-axios使用方法.html" class="navigation navigation-prev " aria-label="Previous page: vue-axios使用方法">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="vue-infinite-loading.html" class="navigation navigation-next " aria-label="Next page: vue-infinite-loading">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"vue-calendar-component","level":"1.27","depth":1,"next":{"title":"vue-infinite-loading","level":"1.28","depth":1,"path":"project/vue-infinite-loading.md","ref":"project/vue-infinite-loading.md","articles":[]},"previous":{"title":"vue-axios使用方法","level":"1.26","depth":1,"path":"project/vue-axios使用方法.md","ref":"project/vue-axios使用方法.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"project/vue-calendar-component.md","mtime":"2019-06-29T12:11:33.849Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-07-18T03:07:23.077Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

